getApp();

var n = require("../../utils/config");

require("../../utils/request"), require("../../utils/api"), require("../../utils/storage");

Page({
    data: {},
    onLoad: function(n) {
        this.init(n);
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    init: function(e) {
        var o = this;
        o.setData({
            loading: !0
        }), n.getH5EInvoiceUrl().then(function(n) {
            var t = n;
            t = (t = t.replace("{0}", "../../pages/my/my")) + "&InsCode=" + e.InsCode, wx.redirectTo({
                url: "/pages/webview/webview?h5=".concat(encodeURIComponent(t)),
                success: function() {
                    o.setData({
                        loading: !1
                    });
                }
            });
        });
    }
});